package com.zkw.adt.list;

/**
 * Created by Administrator on 2016/5/25 0025.
 *
 */
public class Array2List {
    /**
     * 数组实现list.数组扩展容量
     */
    private void array2List(){
        int[] arr=new int[10];
        //扩大arr
        int[] newArr=new int[arr.length*2];
        for (int i=0;i<arr.length;i++){
            newArr[i]=arr[i];
        }
        arr=newArr;
    }
    private void arrayCopy(){
//        System.arraycopy();
    }
    public static void main(String[] args) {

    }
}
